<template>
  <div class="view">
    <div id="img-box">
      <img :src="info.avatar" alt="">
    </div>

    <div id="descr">
      <div id="name">{{info.upName}}</div>
      <div id="comment-content">{{info.content}}</div>
      <div id="from">{{info.from}} {{info.time}}</div>
    </div>

  </div>
</template>

<script>
  export default {
    name: "Item",
  props:{
      info:{}
  }
  }
</script>

<style scoped>
  .view {
    display: flex;
    border-bottom: 2px solid #f6f6f6;
  }

  #img-box {
    width: 6%;
    height: 6%;
    margin-right: 10px;
    align-self: center;
  }

  #img-box img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }

  #descr {
    /*border-top: 2px solid #f6f6f6;*/
    /*border-bottom: 2px solid #f6f6f6;*/
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #name {
    font: 12px "宋体";
    font-weight: 600;
    color: #666666;
  }

  #comment-content {
    font: 13px "宋体";
  }

  #from {
    margin-top: 5px;
    font: 10px "宋体";
    color: #666666;
  }
</style>